<?php
include('../../include/init.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新e代-网络教学综合平台登录</title>
<base href="<?php echo(DOMAIN_ROOT);?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- IE8 mode :IE=500-->
<link href="resources/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function check_login(){
	if (document.login_form.username.value == '')
	{
		alert("用户名不能为空！");
		return false;
	}
	if (document.login_form.password.value == '')
	{
		alert("登陆密码不能为空！");
		return false;
	}
	if (document.login_form.code.value == '')
	{
		alert("验证码不能为空！");
		return false;
	}
}
function reloadImage() 
{ 
    document.login_form.img1.src = document.login_form.img1.src + '?';
}
</script>
</head>

<body>
<div class="login_main">
    <div class="login">
	    <div class="login_content">
		    <form action="<?php echo(DIR_ROOT_A);?>/passport/login/check_login.php" method="post" name="login_form" onSubmit="return check_login();">
			<div class="login_content_top">
				<div class="login_content_top_left"><img src="resources/images/biaozhi.gif" border="0"  /></div>
				<div class="login_content_top_right"><img src="resources/images/biaoti.png" border="0"  /></div>
			</div>
				<div class="login_content_middle">
					<div class="login_content_middle_form">
						<div class="login_content_middle_list">
							<div class="login_content_middle_form_list_left">登陆账号：</div>
							<div class="login_content_middle_form_list_right"><input type="text" name="username" class="login_content_input" /></div>
						</div>
						<div class="login_content_middle_list">
							<div class="login_content_middle_form_list_left">登陆密码：</div>
							<div class="login_content_middle_form_list_right"><input type="password" name="password" class="login_content_input" /></div>
						</div>
						<div class="login_content_middle_list">
							<div class="login_content_middle_form_list_left">验证码：</div>
							<div class="login_content_middle_form_list_right">
								<div class="login_content_middle_form_list_code_right">
									<input type="text" name="code" class="login_content_input2" />
								</div>
								<div class="login_content_middle_form_list_code_middle">
									<img name="img1" src="passport/login/showimg.php">
								</div>
								<a style="color:#000000;font-size:12px;" href="javascript:reloadImage();">看不清？换一张</a></div>
						</div>
					</div>
				</div>
				<div class="login_content_submit">
					<div class="login_content_submit_left"><input type="image" src="resources/images/login.png" /></div>
					<div class="login_content_submit_right"><a href="passport/register/"><img src="resources/images/registe.png" border="0" /></a></div>
				</div>
			<div class="login_content_bottom">山东济南奥体科技发展有限公司</div>
		    </form>
		</div>
	</div>
</div>
</body>
</html>
